package com.firexxx.study.designmodel.strategy;

/**
 * @description: TODO
 * @throws:
 * @author: zhuangzhang2
 * @date: 2019/11/14 14:28
 */
public class Main {

    public static void main(String[] args) {
        UserTrip userTrip = new UserTrip();
        userTrip.setTripStrategy(new WalkTrip());
        userTrip.getTripStrategy().method();

        userTrip.setTripStrategy(new BusTrip());
        userTrip.getTripStrategy().method();
    }
}